package cn.wolfcode.mapper;

import cn.wolfcode.domain.User;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    User selectByPrimaryKey(Long id);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    Long selectForCount(QueryObject qo);

    List selectForList(QueryObject qo);

    void changeStatus(@Param("id") Long id, @Param("status") String status);

    void logicDeletById(@Param("id") Long id, @Param("deleted") boolean deleted);
}